package com.teradata.multithread.jdproviderconsumer;

import java.util.concurrent.ArrayBlockingQueue;

/**
 * @Project: cmcchq
 * @Description:
 * @Version 1.0
 * @Throws :
 * @Author: <li>2019/6/14 lyndon Create 1.0
 * @Copyright (c)2019-2019 版权所有
 * @Modified By:
 */
public class Main {

    public static void main(String[] args) {

        ArrayBlockingQueue arrayBlockingQueue = new ArrayBlockingQueue(1);

        Provider provider = new Provider(arrayBlockingQueue);

        Consumer consumer = new Consumer(arrayBlockingQueue);

        provider.start();
        consumer.start();

    }

}
